package com.zhentao.controller;

import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.model.user.dto.AuthDto;
import com.zhentao.service.ApUserRealnameService;
import com.zhentao.service.ApUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/v1/auth")
public class ApUserRealnameController {
    @Autowired
    private ApUserRealnameService apUserRealnameService;

    @PostMapping("list")
    public ResponseResult list(@RequestBody AuthDto dto){
        return apUserRealnameService.list(dto);
    }
    @PostMapping("authFail")
    public ResponseResult authFail(@RequestBody AuthDto dto){
        return apUserRealnameService.authFail(dto);
    }
    @PostMapping("authPass")
    public ResponseResult authPass(@RequestBody AuthDto dto){
        return apUserRealnameService.authPass(dto);
    }
}
